package com.bignerdranch.android.ecar.Utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/6/29.
 */
public class EcarDataHelper extends SQLiteOpenHelper {

    public EcarDataHelper(Context context) {
        super(context, "Ecar.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql = "create table eCarInfo (id varchar(20),name varchar(20))";
        db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
